package vfs.obj.entity.impl;

import vfs.obj.entity.VFSNode;
import vfs.obj.entity.VFSPathAncestor;

/**
 *
 * @author Matthew Eavenson <durandal@uga.edu>
 */
public class VFSPathAncestorImpl extends VFSPathEndpointImpl implements VFSPathAncestor{

    private VFSNode ancestor;
    
    public VFSPathAncestorImpl(int length, VFSNode ancestor){
        super(length);
        this.ancestor = ancestor;
    }
    
    @Override
    public VFSNode getAncestor() {
        return ancestor;
    }
    
    @Override
    public long getId(){
        return ancestor.getId();
    }
    
}
